/*
 *  $Id: SpidersCall.cs 1051 2010-05-18 22:10:41Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Darkness.Abilities {
    public class SpidersCall: AbilityCard {
        public SpidersCall(): base("001_d_a_spiders_call") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Darkness;
            Value = 100;
            AddManaCost(ElementType.Darkness, 1);
            TapCreatureAfterUse = false;
        }

        public override void DoAction(TargetArgs args) {
            args.Caster.AddAffect<SpidersCallAffect>();
        }

        private class SpidersCallAffect: SpellAffect<SpidersCall> {
            public SpidersCallAffect(): base() {
                TimeAffect time = new TimeAffect(4);
                time.Add(new Affects.MassBlock());
                time.Add(new Affects.ModMaxHealth(2));
                Add(time);
            }
        }
    }
}
